import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    match: null,
  },
  mutations: {
    setMatch(state, match) {
      debugger;
      state.match = match;
    },
  },
  actions: {
    setMatch({ commit, state }, match) {
      commit('setMatch', match);
    },
  },
  getters: {
    match(state) {
      return state.match;
    },
  }
});
